package jsonobj;

import com.google.gson.Gson;

public class ClusterStatusInfo implements JSonObj{
	public String time;
	public String date;
	public int freenodes;
	public int freeprocs;
	public int activejobs;
	public int queuedjobs;
	
	
	public ClusterStatusInfo(){}

	
	public String toString()
	{
		return CLU_ST_INFO+"|"+ new Gson().toJson(this);
	}
	public static ClusterStatusInfo fromJSon(String json)
	{
		return new Gson().fromJson(json,ClusterStatusInfo .class);
	}
}
